/**
 * $Id: MainServiceImpl.java 362 2014-12-01 19:47:44Z steven.jardine@gmail.com $
 *
 * Copyright (c) 2014 Steven Jardine, All Rights Reserved.
 * Copyright (c) 2014 MJN Services, Inc., All Rights Reserved.
 */
package com.gwt.ss.test.server;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Service;

import com.gwt.ss.test.client.MainService;

/**
 * @version $Rev: 362 $
 * @author Steven Jardine
 */
@Service
public class MainServiceImpl implements MainService {

    /**
     * Default constructor.
     */
    public MainServiceImpl() {
        super();
    }

    @Override
    public String unrestricted() {
        return "unrestricted";
    }

    @Override
    @Secured("ROLE_USER")
    public String userSecured() {
        return "userSecured";
    }

    @Override
    @Secured("ROLE_ADMIN")
    public String adminSecured() {
        return "adminSecured";
    }

}
